package diva.pap.merchant;

import diva.lib.json.JSONObject;
import diva.pap.transactions.TransactionRow;

public class MerchantTransactionRowData {

  private final JSONObject json;

  public MerchantTransactionRowData(JSONObject json) {
    this.json = json;
  }

  public CharSequence getAffiliateName() {
    return json.getString("affiliate_name");
  }

  public CharSequence getCampaignName() {
    return json.getString("campaign_name");
  }

  public CharSequence getCommision() {
    return json.getString("commision");
  }

  public String getCreated() {
    return json.getString(TransactionRow.CREATED);
  }

  public CharSequence getOrderId() {
    return json.getString("order_id");
  }

  public CharSequence getProductId() {
    return json.getString("product_id");
  }

  public CharSequence getStatus() {
    return json.getString("status");
  }
}
